Skip to main content

Client

Query

State

novad query oracle query state [chain_name]

Example:

novad query oracle query state cosmoshub-1

Example Output:

{
"coin": {
"denom": "uatom",
"amount": 100000
},
"operator": "nova1a2b...",
"decimal": 8,
"lastBlockHeight": 1024,
"apphash": "ABCD...",
"chainId": "cosmoshub-1"
}

Tx

Update State

novad tx oracle update_state [from_key_or_address] [amount] [block_height] [app_hash] [chain_id]

Example:

novad tx oracle update_state nova1a2b... 10000uatom 1024 ABCD... cosmoshub-1